import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/add',
      name: 'add-card',
      component: () => import('../views/AddCardForm.vue')
    },
    {
      path: '/review/classic',
      name: 'classic-review',
      component: () => import('../views/ClassicReviewView.vue')
    },
    {
      path: '/list',
      name: 'list',
      component: () => import('../views/ListView.vue')
    },
    {
      path: '/review/list',
      name: 'list-review',
      component: () => import('../views/ListReviewView.vue')
    },
    {
      path: '/statistics',
      name: 'statistics',
      component: () => import('../views/StatisticView.vue')
    }
  ]
})

export default router
